<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>事件修饰符</title>
</head>
<body>
    <div id="yun9">
        <a href="javascript:void(0)" @click="openWindow">点我弹窗</a>
        <a href="http://www.baidu.com" @click.prevent="openWindow">点我弹窗</a>
    </div>
    <script src="../node_modules/vue/dist/vue.js"></script>
    <script>
        let app = new Vue({
            el:"#yun9",
            methods:{
                openWindow(){
                    alert("今天很累");
                }
            }

        });
    </script>
</body>
</html>